<template>
  <div class="parent">
    <el-carousel trigger="click" :autoplay="false">
      <el-carousel-item
        v-for="(item, index) of message"
        :key="index"
        style="display:flex;flex-direction:column;justify-content:center"
      >
        <img
          v-if="item.thumb"
          :src="item.thumb"
          style="object-fit:contain; 
object-position: center;"
        />
      </el-carousel-item>
    </el-carousel>
  </div>
</template>
<script>
export default {
  name: "zhr-carousel",
  data() {
    return {};
  },
  mounted() {},
  methods: {},
  props: ["message"],
};
</script>
<style scoped>
.el-carousel__item[data-v-08bf61a3]:nth-child(2n + 1) {
  background-color: #f0f0f0;
}
.el-carousel__item[data-v-08bf61a3]:nth-child(2n) {
  background-color: #f0f0f0;
}
.parent {
  width: 500px;
  margin: auto;
  height: 500px;
}
.el-carousel {
  height: 500px;
  background-color: none;
}
.parent >>> .el-carousel__container {
  height: 500px;
}
.parent >>> .el-carousel__item {
  background-color: none;
}
.parent >>> .el-carousel__item[data-v-08bf61a3]:nth-child(2n + 1) {
  background-color: none !important;
}
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>
